<div id="stage_<%= stage.id %>_type_<%= type.id %>" 
     class='type'
     title="<%= stage.project.name %>-<%= stage.name %>-<%= type.name %>" >
  <div class='head' >
    <div class='title' 
         onmouseover="$('stage_<%= stage.id %>_type_<%= type.id %>_tools').show();"
         onmouseout="$('stage_<%= stage.id %>_type_<%= type.id %>_tools').hide();">
      <div>【<%= type.name %>】</div>
      <div>
        <div class='crud'>
          <div id="stage_<%= stage.id %>_type_<%= type.id %>_designers" 
               class='box cud_smart_form cud_designer_form'
               style="display:none"></div>
        </div>
      </div>
      <div id='stage_<%= stage.id %>_type_<%= type.id %>_tools' class='tools' style='display:none;'>
        <%= link_to_remote "删除",
              :url => work_item_type_stage_url(:id => :none, :stage_id => stage.id, :work_item_type_id => type.id),
              :method => :delete,
              :html => {
                :class => :base_i
              }
         %>
        <%= link_to_remote "▶设计师",
              :update => "stage_#{stage.id}_type_#{type.id}_designers",
              :url => new_in_work_item_designer_work_item_url(:default),
              :with => "'&stage_id=#{stage.id}&work_item_type_id=#{type.id}'",
              :method => :get,
              :complete => "Effect.Appear('stage_#{stage.id}_type_#{type.id}_designers')",
              :html => {
                :class => :base_i
              }
         %>
      </div>
    </div>
    <div class='tools'>
      <%#*<a href='#' class='base'>▶工作项</a>%>
      <%#*<a href='#' class='base'>▶提成</a>%>
    </div>
  </div>
  <div class='work_items'>
    <div class='work_item'>
      <%= render :file => 'projects/work_items_in_index.html', :locals => { :stage => stage, :type => type} %>
    </div>
  </div>
  <div id="stage_<%= stage.id %>_type_<%= type.id %>_designer_work_items" class='designers'>
    <%= render :file => 'projects/designer_work_items_in_index.html', :locals => { :stage => stage, :type => type} %>
  </div>
</div>